<admintpl file="header"/>
<body class="J_scroll_fixed">
<div class="wrap J_check_wrap">
  <ul class="nav nav-tabs">
    	<li class="active"><a href="{:leuu('Ptxq/IndexAdmin/index')}">平台列表</a></li> 
		<li><a href="{:leuu('Ptxq/IndexAdmin/add')}">添加平台</a></li>
      
  </ul>
  <div class="common-form">

<style>
	.table td {font-size: 12px;line-height: 39px;}
	.page a{float: left;padding: 4px 12px;line-height: 20px;text-decoration: none;background-color: #fff;border: 1px solid #ddd;border-left-width: 0;}
	.page span{float: left;padding: 4px 12px;line-height: 20px;text-decoration: none;background-color: #fff;border: 1px solid #ddd;}
	.page .prev{float: left;padding: 4px 12px;line-height: 20px;text-decoration: none;background-color: #fff;border: 1px solid #ddd;}
	.img2{display: none;margin: 5px auto;}
	.img:hover .img1{display: none;}
	.img:hover .img2{display: block;}
 .jypz{float: left;color: #156eb9;font-weight: 800;}
	.cppz .del{display: none;float: left;}
	.cppz:hover .del{display: block; margin-left: 3px;}
	.cppz{width: 177px;display: block;float: left;line-height: 21px;margin-top: 17px;height: 25px;}
	.pzgg{width: 900px;display: none;color: #E72004;height: 20px;}
	.cppz:hover .pzgg{display: block;}
</style>
   
      <div class="table_list">
	 		<table width="100%" class="table table-hover">
				<thead>
				  <tr>
						
						<th width="50">排序</th>
						<th width="250">交易平台</th>
						<th>交易品种</th>
						<th width="50">推荐</th>
						<th width="50">状态</th>
						<th width="200">操作</th>
				  </tr>
				</thead>
				<tbody>
				  <form method="post"  action="{:leuu('Ptxq/IndexAdmin/order')}">
					<foreach name="ptxq" item="vo">
						<tr>
						  <td><input name="{$vo['id']}" class="input input-order" type="text" size="5" value="{$vo['sort']}" ></td>
						  <td>{$vo.name}</td>	
						  <td>
						  	<foreach name="vo.child" item="v">
									<span class="cppz">
										<span class="jypz">{$v.jypz}</span>
									
										<a href="{:leuu('Ptxq/IndexAdmin/edit_pz',array('pz_id'=>$v['id'],'pt_id'=>$vo['id']))}" class="del">编辑</a>	&nbsp;&nbsp;
										<a href="{:leuu('Ptxq/IndexAdmin/del_pz',array('id'=>$v['id']))}"  onclick="{if(confirm('确定删除吗?')){return true;}return false;}"  class="del">删除</a>
										
									</span>	
									
								</foreach>
						  	
						  </td>
						   <td>
						   <a href="{:leuu('Ptxq/IndexAdmin/tuijian',array('id'=>$vo['id'],'tuijian'=>$vo['tuijian']))}" style='<eq name="vo['tuijian']" value="1">color:red</eq>'> <eq name="vo['tuijian']" value="1">已推荐</eq><eq name="vo['tuijian']" value="0">未推荐</eq></a>
						  </td>
						  <td>
						   <a href="{:leuu('Ptxq/IndexAdmin/status',array('id'=>$vo['id'],'status'=>$vo['status']))}" > <eq name="vo['status']" value="1">开启</eq><eq name="vo['status']" value="0">关闭</eq></a>
						  </td>							  
						  <td>
						  	<a href="{:leuu('Ptxq/IndexAdmin/pt_yh',array('id'=>$vo['id']))}" >开户银行</a>|
						  	<a href="{:leuu('Ptxq/IndexAdmin/add_pz',array('id'=>$vo['id']))}" >添加产品</a>|
							  <a href="{:leuu('Ptxq/IndexAdmin/edit',array('id'=>$vo['id']))}" >修改</a>|
								<a href="{:leuu('Ptxq/IndexAdmin/del',array('id'=>$vo['id']))}"  >删除</a>
							</td>
						</tr>
					</foreach>
						<tr> 
							<td colspan="11" style="line-height: 29px;"><input type="submit" class="btn-primary"  value="排序" /></td>
						</tr>
				  </form>

				</tbody>
			</table>
		<div class="page">{:$page}</div>
  		</div>

  </div>
</div>
<script src="__ROOT__/public/js/common.js"></script>
</body>
</html>